#ifndef MESSAGELABEL_H_
#define MESSAGELABEL_H_
#include "../Widget.h"
#include "../Listener.h"
#include "../../common/utils/Logger.h"
#include "SDL/SDL_ttf.h"

class MessageLabel: public Widget {
public:
	MessageLabel();
	MessageLabel(std::string message, Widget* parent, int x, int y,
			Listener* listener);
	virtual ~MessageLabel();

	virtual void handleEvent(Event event);

	virtual void resolve();

	virtual void showOn(SDL_Surface* surface);
	void setActive();
	bool getYes();
	bool isActive();

private:
	bool active;
	bool yes;

	std::string message;

	SDL_Surface* onSurface;
	SDL_Surface* offSurface;
	SDL_Surface* activeSurface;

	Listener* listener;

};

#endif /* MESSAGELABEL_H_ */
